<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<div style="clear:both;"></div>
<div class="description_detail">
	<p>
	<?php if ($this->fiche->duration) { ?>
		<label><?php echo JText::_('COM_GEOTRAILS_DURATION'); ?></label><?php echo ': '.$this->fiche->duration.' ('.$this->fiche->duration_m.' '.JText::_('COM_GEOTRAILS_DURATION_MIN').')'; ?><br />
	<?php } ?>
	<?php if ($this->fiche->info->real_distance) { ?>
		<label><?php echo JText::_('COM_GEOTRAILS_DISTANCE'); ?></label><?php echo ': '.$this->fiche->info->real_distance.' '.JText::_('COM_GEOTRAILS_DISTANCE_M'); ?><br />
	<?php } ?>
	<?php if ($this->fiche->period_begin.$this->fiche->period_end) { ?>
		<label><?php echo JText::_('COM_GEOTRAILS_PERIODE'); ?></label><?php echo ': '; ?>
		<?php if (strtolower($this->fiche->period_begin) == strtolower($this->fiche->period_end)) { ?>
			<?php echo JText::_('COM_GEOTRAILS_PERIODE_ALL'); ?><br />
		<?php } else { ?>				
			<?php if ($this->fiche->period_begin) { ?>
				<?php echo JText::_('COM_GEOTRAILS_PERIODE_DE'); ?><?php echo ' '.$this->fiche->period_begin; ?>
			<?php } ?>
			<?php if ($this->fiche->period_end) { ?>
				<?php echo ' '.JText::_('COM_GEOTRAILS_ALTITUDE_MIN'); ?><?php echo ' '.$this->fiche->alti_min.' '.JText::_('COM_GEOTRAILS_DISTANCE_M'); ?><br />
			<?php } else { ?>
				<br />
			<?php } ?>
		<?php } ?>
	<?php } ?>
	<label><?php echo JText::_('COM_GEOTRAILS_DIFFICULTY'); ?></label><?php echo ': '.JText::_('COM_GEOTRAILS_DIFFICULTY_'.$this->fiche->difficulty_id); ?><br />
	<?php if ($this->fiche->info->up_hill) { ?>
		<label><?php echo JText::_('COM_GEOTRAILS_DIFFERENCE_IN_ALTITUDE'); ?></label><?php echo ': &uarr;'.$this->fiche->info->up_hill.' &darr;'.$this->fiche->info->down_hill.' '.JText::_('COM_GEOTRAILS_DISTANCE_M'); ?><br />
	<?php } ?>
	<?php if ($this->fiche->info->alti_min) { ?>
		<label><?php echo JText::_('COM_GEOTRAILS_ALTITUDE_MIN'); ?></label><?php echo ': '.$this->fiche->info->alti_min.' '.JText::_('COM_GEOTRAILS_DISTANCE_M'); ?><br />
	<?php } ?>
	<?php if ($this->fiche->info->alti_max) { ?>
		<label><?php echo JText::_('COM_GEOTRAILS_ALTITUDE_MAX'); ?></label><?php echo ': '.$this->fiche->info->alti_max.' '.JText::_('COM_GEOTRAILS_DISTANCE_M'); ?><br />
	<?php } ?>
	<?php if ($this->fiche->info->start_point->lng.$this->fiche->info->start_point->lat) { ?>
		<label><?php echo JText::_('COM_GEOTRAILS_START_POINT'); ?></label><?php echo ': '.$this->fiche->info->start_point->lng.'/'.$this->fiche->info->start_point->lat; ?><br />
	<?php } ?>
	<?php if ($this->fiche->info->start_point->ele) { ?>
		<label><?php echo JText::_('COM_GEOTRAILS_ALTITUDE'); ?></label><?php echo ': '.$this->fiche->info->start_point->ele.' '.JText::_('COM_GEOTRAILS_DISTANCE_M'); ?><br />
	<?php } ?>
	<?php if ($this->fiche->info->end_point->lng.$this->fiche->info->end_point->lat) { ?>
		<label><?php echo JText::_('COM_GEOTRAILS_END_POINT'); ?></label><?php echo ': '.$this->fiche->info->end_point->lng.'/'.$this->fiche->info->end_point->lat; ?><br />
	<?php } ?>
	<?php if ($this->fiche->info->end_point->ele) { ?>
		<label><?php echo JText::_('COM_GEOTRAILS_ALTITUDE'); ?></label><?php echo ': '.$this->fiche->info->end_point->ele.' '.JText::_('COM_GEOTRAILS_DISTANCE_M'); ?>
	<?php } ?>
	</p>
</div>